acho melhor vc fazer esse script em global events
tente isso aki
local paredes = {
[itemid_parede1] = {wall = itemid_parede2,player_pos = {x = ,y =,z = },wall_pos = {x = ,y =,z = }},
}
function onThink(interval, lastExecution)
local hasplayer = 0
for _,a in pairs(paredes) do
local ppos = paredes[a].player_pos
local wpos = paredes[a].player_pos
if getSpectators(ppos, 1, 1,false) then
for _, cid in ipairs(getSpectators(ppos, 1, 1,false)) do
if isCreature(cid) then
if doComparePosition(getThingPos(cid), ppos) then
hasplayer = 1
end
end
end
end
for i = 1,253 do
local uidwall = getTileThingByPos({x = wpos.x, y = wpos.y, z = wpos.z, stackpos = i})
if hasplayer == 1 then
if uidwall.itemid == a then
doTransformItem(uidwall.uid, paredes[a].wall)
end
else
if uidwall.itemid == paredes[a].wall then
doTransformItem(uidwall.uid, a)
end
end
end
end
end







info
Grupo: Visconde
Registrado: 07/02/12
Posts: 427
Reputação: +112
Olá Xtibianos, queria um script movement que ao o player pisar em cima, ficar parado ali tanto faz a parede 1 muda de 1 para 2 e ao sair, ou não tiver mais ninguem em cima dela ela volta para parede 1, não precisa de mensagem nem level nada, só pisou mudou.
@up